
function selectList(servicename,id,name)
{
	var str = '/XSP/common/data/get.do?service=' + servicename;
	 var obj = window.showModalDialog(str,window,'dialogWidth:360px;dialogHeight:400px');
	 if(obj!=null)
	 {
	 	if(obj.id=='')
	 	{
	 		document.getElementById(id).value = '';
	 		document.getElementById(name).value = '';
	 		return null;
	 	}
	 	else
	 	{
	 		document.getElementById(id).value = obj.id;
	 		document.getElementById(name).value = obj.name;
	 		return true;
	 	}
	 }
	 return null;
}